﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Common
{
    public class NameUltility
    {
        public static string ToPascal(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                return name;
            }
            else
            {
                string str = name.Trim();
                return str.Substring(0, 1).ToUpper() + str.Substring(1);
            }
        }

        public static string ToCamel(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                return name;
            }
            else
            {
                string str = name.Trim();
                return str.Substring(0, 1).ToLower() + str.Substring(1);
            }
        }
    }
}
